<!DOCTYPE html>
<html>
    <head>
        <title>{{=settings.SITE.SITE_NAME}}</title>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <!-- Core CSS - Include with every page -->
        <link href="{{=url_for_static('sb-admin-v2/css/bootstrap.min.css')}}" rel="stylesheet">
        <link href="{{=url_for_static('sb-admin-v2/font-awesome/css/font-awesome.min.css')}}" rel="stylesheet">
        <!-- SB Admin CSS - Include with every page -->
        <link href="{{=url_for_static('sb-admin-v2/css/sb-admin.css')}}" rel="stylesheet">
        <link href="{{=url_for_static('layout.css')}}" rel="stylesheet">
        
        {{block css}}{{end}}
    </head>
    
    <body>
        <div class="chujue-alert"></div>
        <div id="wrapper">
            <nav class="navbar navbar-default navbar-fixed-top" role="navigation" style="margin-bottom:0;">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="/">{{=settings.SITE.SITE_NAME}}</a>
                </div>
                <!-- /.navbar-header -->
                
                <ul class="nav navbar-top-links navbar-right">
                    当前用户: <b>{{=request.user.real_name}}</b>
                    <!-- /.dropdown -->
                    <li class="dropdown">
                        <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                            <i class="fa fa-user fa-fw"></i>  <i class="fa fa-caret-down"></i>
                        </a>
                        <ul class="dropdown-menu dropdown-user">
                            <li><a href="/auth/profile"><i class="fa fa-gear fa-fw"></i> 修改信息</a>
                            </li>
                            <li class="divider"></li>
                            <li><a href="/auth/logout"><i class="fa fa-sign-out fa-fw"></i> 注销</a>
                            </li>
                        </ul>
                    </li>
                </ul>
                <!-- /.navbar-top-links -->
            </nav>
            <!-- /.navbar-static-top -->
            
            <div class="container">
                <ol class="breadcrumb">
                    {{block breadnav}}{{end}}
                </ol>
                {{block content}}{{end}}
            </div>
        </div>

<!-- Core Scripts - Include with every page -->
<script src="{{=url_for_static('sb-admin-v2/js/jquery-1.10.2.js')}}"></script>
<script src="{{=url_for_static('sb-admin-v2/js/bootstrap.min.js')}}"></script>

{{block js}}{{end}}
</body>
</html>

